-
Notifications
You must be signed in to change notification settings - Fork 5k
Feature: Add copy button to answer UI #2131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Add copy button to answer UI #2131
Conversation
@pamelafox, could you please review this PR? It’s a relatively straightforward update, with only a few lines of code added. Thanks! |
"info": "Info", | ||
"save": "Gem" | ||
"save": "Gem", | ||
"copy": "Kopier svar", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EMjetrot Can you review these two strings, "Kopier svar" for "Copy", and "Kopieret!" for copied?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pamelafox - "Kopier svar" is correct, but I would perhaps just say "Kopier" and remove "svar" (eng: answer), since we also don't say "Gem svar", but only "Gem" (eng: save). "Kopieret!" is also correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, we'd need to apply this change across all translations for consistency. Personally, I find "Copy answer" a bit more descriptive than just "Copy", but I understand the simplicity of the shorter version as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I checked chatgpt.com as they've got a similar copy button and they only use "Copy", so that's an argument for "Copy".
I think we can safely shorten the romance/european languages based on our own knowledge and what chatgpt.com is using, and I've asked @bnodir to comment about the Japense change since that's where I feel the least confident.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🇫🇷
@jeannotdamoiseaux The code looks reasonable, thanks for the helpful addition. |
|
"copy": "回答をコピー", | ||
"copied": "コピーしました!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Pamela Fox <[email protected]>
Co-authored-by: Pamela Fox <[email protected]>
Co-authored-by: Pamela Fox <[email protected]>
I believe we have reviewed and adapted all the languages now. |
Thanks @jeannotdamoiseaux, merged! |
Purpose
This change introduces a "Copy" button to each answer in the chat interface:
This enhancement improves user experience by making it easier for users to copy and paste answers from the chat.
Does this introduce a breaking change?
When developers merge from main and run the server, azd up, or azd deploy, will this produce an error?
If you're not sure, try it out on an old environment.
Does this require changes to learn.microsoft.com docs?
This repository is referenced by this tutorial
which includes deployment, settings and usage instructions. If text or screenshot need to change in the tutorial,
check the box below and notify the tutorial author. A Microsoft employee can do this for you if you're an external contributor.
Type of change
Code quality checklist
See CONTRIBUTING.md for more details.
python -m pytest
).python -m pytest --cov
to verify 100% coverage of added linespython -m mypy
to check for type errorsruff
andblack
manually on my code.